import request from "@/utils/request";

export function listData(query) {
  return request({
    url: `/user-manager/device${query}`,
    method: "get"
  });
}

export function postBanDevice(id, form) {
  return request({
    url: `/user-manager/device/device-ban/${id}`,
    method: "post",
    data: form
  });
}

export function postBanIpDevice(id, form) {
  return request({
    url: `/user-manager/device/ip-ban/${id}`,
    method: "post",
    data: form
  });
}

export function getExport(params) {
  return request({
    url: "/user-manager/device/excel",
    method: "get",
    params
  });
}
